const webpack = require("webpack")
module.exports = {
  mode: "production",
  devtool: "source-map", // 定位
  plugins: [
    new webpack.DefinePlugin({
      "process.env": JSON.stringify({
        BASE_URL: "/",
        UPLOAD_URL: "/upload",
        NODE_ENV: "development"
      })
    })
  ]
}
